<h1>Code Set Index</h1>
<table>
  <thead>
    <tr>
      <th>Action</th>
      <th>Code Set Name</th>
      <th>Status</th>
      <th>Code Class</th>
      <th>Effective From</th>
      <th>Effective To</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cm_codesetList as $cm_codeset): ?>
    <tr>
      <td><a href="<?php echo url_for('codesetAdmin/edit?code_set_nm='.$cm_codeset['code_set_nm']) ?>">Edit</a> | <a href="<?php echo url_for('genCodeValueAdmin/index?code_set_nm='.$cm_codeset['code_set_nm']) ?>"> Codes</a> | <?php echo link_to('Delete', 'codesetAdmin/delete?code_set_nm='.$cm_codeset['code_set_nm'], array('post' => true, 'confirm' => 'Are you sure?')) ?> | Export</td>
      <td><?php echo $cm_codeset['code_set_nm'] ?></td>
      <td><?php echo $cm_codeset['CMGeneralCodeValue'][0]['display_name'] ?></td>
      <td><?php echo $cm_codeset['CMGeneralCodeValue'][1]['display_name'] ?></td>
      <td><?php echo $cm_codeset['effective_from_time'] ?></td>
      <td><?php echo $cm_codeset['effective_to_time'] ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

<a href="<?php echo url_for('codesetAdmin/create') ?>">Create</a>
